home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / LowLevel / PKeywords.h < prev    next >
C/C++ Source or Header  |  1996-08-19  |  9KB  |  469 lines

  1. /*
  2.  *--- PKeywords.h ---------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description: This file contains enums used by a variety
  7.  * of classes for constructor parameters.  For constants
  8.  * that apply only to a single command, the enum can be found
  9.  * in the header file for that class.
  10.  *-------------------------------------------------------------------------
  11.  */
  12. #ifndef __PKeywords__
  13. #define __PKeywords__
  14.  
  15. #ifdef __MWERKS__
  16. #pragma once
  17. #endif
  18.  
  19. enum
  20. {
  21.     kParmDefault = -1,        // use default... whatever that happens to be
  22.     kParmDontCare = -2,        // I don't care about this, leave it alone, or does not apply
  23.     kParmNone = 0,
  24.     kParmNormal = 0,
  25.     
  26.     kParmLeft = 0,
  27.     kParmCenter,
  28.     kParmRight,
  29.     kParmTop,
  30.     kParmBottom,
  31.  
  32.     kParmHorizontal = 1,
  33.     kParmVertical = 2
  34. };
  35.  
  36. typedef enum
  37. {
  38.     kAlignmentLeft = 0,         // alignment for PAlignment and PTabs
  39.     kAlignmentCenter,
  40.     kAlignmentRight,
  41.     kAlignmentJustify,
  42.     kAlignmentForce,
  43.     kAlignmentDecimal = 3
  44. } eAlign;
  45.  
  46. typedef enum
  47. {
  48.     kAutoNone = 0,         // auto renumbering mode for Book
  49.     kAutoNext,
  50.     kAutoNextOdd,
  51.     kAutoNextEven
  52. }eAuto;
  53.  
  54.  
  55. typedef enum
  56. {
  57.     kBumpUpOne = 0,         // bump text size for PSizeBump
  58.     kBumpDownOne,
  59.     kBumpUpNext,
  60.     kBumpDownNext
  61. } eBump;
  62.  
  63.  
  64. typedef enum
  65. {
  66.     kCaseNormal = 0,         // type case for PCase
  67.     kCaseAllcaps,
  68.     kCaseSmallcaps
  69.     // kCaseMultiple = -2        // may be returned by PGetCase
  70. } eCase;
  71.  
  72. typedef enum
  73. {
  74.     kCloseStoryDiscard,
  75.     kCloseStoryPlace
  76. } eCloseStory;
  77.  
  78. typedef enum
  79. {
  80.     kColorRGB = 0,                 // color models for DefineColor
  81.     kColorCMYK,
  82.     kColorHLS,
  83.     kColorPantone,                 // obsolete
  84.     kColorLab,
  85.     kColorMultiInk,
  86.     kColorRGB255                // Starting w/ 6.0, RGB colors are now spec'd
  87. } eColor;                        // as 0 to 255, as opposed to 0 to 100%. color_rgb
  88.                                 // is used for 0 to 100% backward compatibility.
  89.                                 // color_rgb255 is used for new 0 to 255 scale.
  90.  
  91. typedef enum
  92. {
  93.     kColorTypeSpot = 0,         // color types for DefineColor
  94.     kColorTypeProcess,
  95.     kColorTypeTint,
  96.     kColorTypeHifi
  97. } eColorType;
  98.  
  99. typedef enum
  100. {
  101.     kColumnBothPages = 0,     // pages for PColumnGuides and PMoveColumn
  102.     kColumnLeftPage,
  103.     kColumnRightPage
  104. } eColumn;
  105.  
  106. typedef enum
  107. {
  108.     kCopyNone = 0,                 // copy files for SaveAs
  109.     kCopyremote,
  110.     kCopylinked
  111. } eCopy;
  112.  
  113. typedef enum
  114. {
  115.     kDownloadPSandTT = 1,        // Option for printoptionsps command
  116.     kDownloadTTonly = 2            // Option for printoptionsps command
  117. } eDownload;
  118.  
  119. typedef enum
  120. {
  121.     kEdgeLeft = 0,            // object edges for various commands
  122.     kEdgeCenter,
  123.     kEdgeRight,
  124.     kEdgeTop,
  125.     kEdgeBottom,
  126.     kEdgeLeftTop,
  127.     kEdgeLeftBottom,
  128.     kEdgeRightTop,
  129.     kEdgeRightBottom
  130. } eEdge;
  131.  
  132. typedef enum
  133. {
  134.     kEnvFontMetrics = 1,         // bit flags for ChangeEnv
  135.     kEnvInstalledFonts = 2,
  136.     kEnvAdditions = 4,
  137.     kEnvPlugins = 4
  138. } eEnv;
  139.  
  140. typedef enum
  141. {
  142.     kFCSSelectedText = 0,         // for find, change, spell commands
  143.     kFCSCurrentStory = 1,
  144.     kFCSAllStories = 2,
  145.     kFCSStopAtEnd = 0,
  146.     kFCSWrap = 1,
  147.     kFCSWindowClose = 0,
  148.     kFCSWindowOpen = 1
  149. } eFCS;
  150.  
  151. typedef enum
  152. {
  153.     kFCAnyCase = 0,        // for find and change commands
  154.     kFCMatchCase = 1,
  155.     kFCAllInstances = 0,
  156.     kFCWholeWord = 1,
  157.     kFCUseAttributes = 0,
  158.     kFCClear = 1
  159. } eFC;
  160.  
  161. typedef enum
  162. {
  163.     kFCAttrAny = -3,         // for PFindAttr and PChangeAttr commands
  164.     kFCAttrNormalStyle = 0,
  165.     kFCAttrBoldStyle = 1,
  166.     kFCAttrItalicStyle = 2,
  167.     kFCAttrUnderlineStyle = 4,
  168.     kFCAttrStrikethruStyle = 8,
  169.     kFCAttrOutlineStyle = 16,
  170.     kFCAttrShadowStyle = 32,
  171.     kFCAttrReverseStyle = 64,
  172.     kFCAttrAllCap = 1,
  173.     kFCAttrSmallCap = 2
  174. } eFCAttr;
  175.  
  176. typedef enum
  177. {
  178.     kFillNone = 0,         // fill style for PFillStyle
  179.     kFillPaper,
  180.     kFillSolid,
  181.     kFillTenPct,
  182.     kFillTwentyPct,
  183.     kFillThirtyPct,
  184.     kFillFortyPct,
  185.     kFillSixtyPcT,
  186.     kFillEightyPct,
  187.     kFillVertFew,
  188.     kFillVertLots,
  189.     kFillHorizFew,
  190.     kFillHorizLots,
  191.     kFillDiagFew,
  192.     kFillDiagLots,
  193.     kFillHashFew,
  194.     kFillHashLots
  195. } eFillStyle;
  196.  
  197.  
  198. typedef enum
  199. {
  200.     kFlowBreak = 0,             // text flow for PTextWrap
  201.     kFlowJumpOver,
  202.     kFlowAllSides
  203. } eFlow;
  204.  
  205. enum
  206. {
  207.     kGraphicsDisplayGray = 0,     // graphic display preferences
  208.     kGraphicsDisplayNormal = 1,
  209.     kGraphicsDisplayHighres = 2
  210. };
  211.  
  212. typedef enum
  213. {
  214.     kGuidesFront = 0,             // guide layer preference
  215.     kGuidesBack = 1
  216. } eGuides;
  217.  
  218. typedef enum
  219. {
  220.     kHyphManualOnly = 1,         // method for Hyphenation
  221.     kHyphPlusDictionary,
  222.     kHyphPlusAlgorithm
  223. } eHyph;
  224.  
  225. typedef enum
  226. {
  227.     kIndexNested = 0,         // format for IndexFormat
  228.     kIndexRunIn
  229. } eIndex;
  230.  
  231. typedef enum
  232. {
  233.     kKernNone = 0,         // kerning amount for PManualKerning
  234.     kKernCloserFine,
  235.     kKernApartFine,
  236.     kKernCloserCoarse,
  237.     kKernApartCoarse
  238. } eKern;
  239.  
  240. typedef enum
  241. {
  242.     kKindPublication = 0,
  243.     kKindTemplate,
  244.     kKind50Format
  245. } eKind;
  246.  
  247. typedef enum
  248. {
  249.     kLeadProportional = 0,         // leading method for SpacingOptions
  250.     kLeadTopOfCaps,
  251.     kLeadBaseline
  252. } eLead;
  253.  
  254. enum
  255. {
  256.     kLineNone = 0,        // line style for PLineStyle and PRuleAbove/Below
  257.     kLineHairline,
  258.     kLineHalfPoint,
  259.     kLineOnePoint,
  260.     kLineTwoPoint,
  261.     kLineFourPoint,
  262.     kLineSixPoint,
  263.     kLineEightPoint,
  264.     kLineTwelvePoint,
  265.     kLineThinThin,
  266.     kLineThickThin,
  267.     kLineThinThick,
  268.     kLineThinThickThin,
  269.     kLineThinDash,
  270.     kLineTediumDash,
  271.     kLineThickDash,
  272.     kLineSquares,
  273.     kLineDots,
  274.     kLineSolid = 31
  275. };
  276.  
  277. typedef enum
  278. {
  279.     kMeasurementInches = 0,        // measurement unit preferences
  280.     kMeasurementDecimalInches,
  281.     kMeasurementMetric,
  282.     kMeasurementPica,
  283.     kMeasurementCicero,
  284.     kMeasurementCustom
  285. } eMeasurement;
  286.  
  287. typedef enum
  288. {
  289.     kNewPagesBefore = 0,        // insertion location for cWhere
  290.     kNewPagesAfter,
  291.     kNewPagesBetween
  292. } eNewPages;
  293.  
  294. typedef enum
  295. {
  296.     kNumDontCare        = -2,
  297.     kNumArabic            = 0,        // number types for PageNumbers
  298.     kNumUpperRoman        = 1,
  299.     kNumLowerRoman        = 2,
  300.     kNumUpperAlpha        = 3,
  301.     kNumLowerAlpha        = 4
  302. } eNum;  // :-O
  303.  
  304. enum
  305. {
  306.     kPageLeftMaster = -3,        // non-numeric page numbers for Page
  307.     kPageRightMaster = -4,
  308.     kPageNext = -5,
  309.     kPagePrevious = -6
  310. } ;
  311.  
  312. typedef enum
  313. {
  314.     kStylePalette = 1,
  315.     kColorPalette = 2,        
  316.     kControlPalette = 3,
  317.     kMasterPalette = 4
  318. } ePalette;
  319.  
  320. typedef enum                        // for PasteSpecial
  321. {
  322.     kPasteText            = 0,        
  323.     kPasteRTF            = 1,
  324.     kPastEPS            = 2,
  325.     kPasteExternal        = 3,
  326.     kPasteColortronColors    = 4,    // mac only
  327.     kPasteObjectEmbed    = 5,
  328.     kPasteObjectLink    = 6,
  329.     kPastePict            = 7,        // mac only
  330.     kPasteMetafile        = 8,        // mac only
  331.     kPasteTIFF            = 9,        // win only
  332.     kPasteBitmap        = 10,        // win only
  333.     kPasteEnhMetafile    = 11,        // win only
  334.     kPasteDIB            = 12        // win only
  335. } ePaste;
  336.  
  337. typedef enum
  338. {
  339.     kPlaceIndependent = 0,         // placement options for Place
  340.     kPlaceNewStory = 0,
  341.     kPlaceReplaceEntire = 1,
  342.     kPlaceInlineGraphic = 1,
  343.     kPlaceInsertText = 2,
  344.     kPlaceReplaceText = 2        // ???
  345. } ePlace;
  346.  
  347. typedef enum
  348. {
  349.     kPositionNormal = 0,         // type position for Position
  350.     kPositionSuperscript,
  351.     kPositionSubscript
  352. } ePosition;
  353.  
  354. typedef enum
  355. {
  356.     kPreserveLine = 0,            // hints for PFontDrawing
  357.     kPreserveChar = 1
  358. } ePreserve;
  359.  
  360. typedef enum
  361. {
  362.     kPSMemoryNormal = kParmNormal,
  363.     kPSMemoryMaximum = 1
  364. } ePSMemory;
  365.  
  366. typedef enum
  367. {
  368.     kRenderClipIn = 0,        // settings for RenderClip command
  369.     kRenderClipOut = 1
  370. } eRenderClip;
  371.  
  372. typedef enum
  373. {
  374.     kSaveFaster = 0,         // save option for Preferences
  375.     kSaveSmaller = 1
  376. } eSave;
  377.  
  378. typedef enum
  379. {
  380.     kInkNDDefault = 0,        // ink ND in ink setup dialog
  381.     kInkNDSet = 1
  382. } eInkND;
  383.  
  384. typedef enum
  385. {
  386.     kStyleNormal = 0,         // TypeStyles
  387.     kStyleBold,
  388.     kStyleItalic,
  389.     kStyleUnderline,
  390.     kStyleOutline,
  391.     kStyleShadow,
  392.     kStyleStrikethru,
  393.     kStyleReverse
  394. } eStyle;
  395.  
  396. typedef enum
  397. {
  398.     kTextAmtCharFor = 0,         // amount for TextSelect and TextCursor
  399.     kTextAmtCharBack,
  400.     kTextAmtWordFor,
  401.     kTextAmtWordBack,
  402.     kTextAmtLineFor,
  403.     kTextAmtLineBack,
  404.     kTextAmtParaFor,
  405.     kTextAmtParaBack,
  406.     kTextAmtHoleFor,
  407.     kTextAmtHoleBack,
  408.     kTextAmtStoryFor,
  409.     kTextAmtStoryBack,
  410.     kTextAmtEolFor,
  411.     kTextAmtEolBack,
  412.     kTextAmtSentFor,
  413.     kTextAmtSentBack,
  414.     kTextAmtRunFor,
  415.     kTextAmtRunBack,
  416.     kTextAmtAll
  417. } eTextAmt;
  418.  
  419. typedef enum
  420. {
  421.     kTOCNoPageNums = 0,         // format for CreateTOC
  422.     kTOCPageNumsBefore,
  423.     kTOCPageNumsAfter
  424. } eTOC;
  425.  
  426. typedef enum                    // used by PTool and PGetTool
  427. {
  428.     kPointerTool = 1,
  429.     kTextTool, 
  430.     kOvalTool, 
  431.     kRoundedRectTool, 
  432.     kDiagLineTool, 
  433.     kPerpLineTool,
  434.     kPolygonTool,
  435.     kZoomTool,
  436.     kRotationTool, 
  437.     kCropTool 
  438. } eTool;
  439.  
  440. typedef enum
  441. {
  442.     kTrackNoTrack = 0,             // kerning track for PTrack, PGetTrack
  443.     kTrackVeryLoose,
  444.     kTrackLoose,
  445.     kTrackNormal,
  446.     kTrackTight,
  447.     kTrackVeryTight
  448.     // kTrackMultiple = -2        // may be returned by PGetTrack
  449. } eTrack;
  450.  
  451. typedef enum
  452. {
  453.     kViewFitToWindow = -3,        // non-percentage choices for View
  454.     kViewPasteboard = -4
  455. } eView;
  456.  
  457. typedef enum
  458. {
  459.     kWrapNone = 0,         // wrap option for TextWrap
  460.     kWrapRect = 1,
  461.     kWrapIrregular = 2,
  462.     kWrapCustom = 2         // duplicate, should be removed someday
  463. } eWrap;
  464.  
  465.  
  466. #endif
  467.  
  468. // end of PKeywords.h
  469.